home *** CD-ROM | disk | FTP | other *** search
- property pOrigMember, pTimer, pSpr, pTilt, pIngredient
- global gFloatSprite
-
- on beginSprite me
- pSpr = sprite(me.spriteNum)
- pOrigMember = pSpr.member
- pIngredient = #ice
- pTilt = #left
- end
-
- on mReplaceIt me
- pSpr.visible = 1
- end
-
- on mouseDown me
- if the doubleClick then
- exit
- end if
- if draggingAnything() then
- replaceDraggingAnything()
- exit
- end if
- menuDown = nowTicks()
- mPickMeUp(me)
- end
-
- on mPickMeUp me, noToolTip, pickupLoc
- global gIceSounds
- replaceDraggingAnything()
- returnToBar(VOID, 1)
- pSpr.visible = 0
- if gIceSounds then
- iceSound = "ice_scoop"
- else
- iceSound = VOID
- end if
- sendSprite(gFloatSprite, #mPickUpBottle, pSpr, VOID, VOID, pIngredient, VOID, iceSound, pickupLoc)
- end
-
- on mouseEnter me
- if not draggingAnything() then
- pTimer = nowTicks()
- showToolTip(pSpr, pIngredient)
- end if
- end
-
- on mouseLeave me
- if not draggingAnything() then
- hideToolTip()
- end if
- end
-
- on mouseWithin
- if draggingAnything() then
- else
- if tipTickRange(pTimer) then
- forceToolTip(pSpr, pIngredient)
- end if
- end if
- end
-